﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="login.aspx.cs" Inherits="Catering.login" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>登录页</title>
    <script src="Scripts/jquery-1.4.1.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="Style/head.css"/>
<style type="text/css">
 .content_login{ width:1060px; margin:0 auto; background:#0064a3 url(Images/login_bottom_bg.gif) center bottom no-repeat; height:650px;}
 .login_logo{ width:935px; margin-top:125px; float:left; padding-left:125px;}
 .login_button{ width:1060px; background:url(Images/login_button.gif) 0 0 no-repeat; height:200px; float:left; position:relative;}
 .lg_input_bg{ width:108px; height:30px; background:url(Images/login_input.gif) 0 0 no-repeat; border:none; line-height:30px; text-align:center; color:#0064a3; margin:95px 22px 0 0px;_margin:95px 18px 0 0px; float:right;}
 .lg_check_bg{ text-align:center; color:#0064a3; left:830px; top:132px; color:#ffffff; float:right; position:absolute; z-index:11;}
 .lg_check_bg input{ vertical-align:middle; }
 .lg_check_bg label{ display:inline-block; line-height:30px;}
 .login_button a{ width:32px; height:26px; display:block; float:right; margin:95px 75px 0 0px;_margin:95px 40px 0 0px; line-height:9999px; overflow:hidden;} 
 .login_button a:link,.login_button a:visited{ background:url(Images/login_bt01.gif) 0 0 no-repeat;}
 .login_button a:hover{ background:url(Images/login_bt02.gif) 0 0 no-repeat;}
 .login_Slogan{ width:391px; height:59px; float:right; margin-right:80px;}
</style>
<script type="text/javascript">
//    document.location.href = "wzweihu.html";
    $(document).keypress(function (event) {
        if (event.keyCode == 13) {
            window.location.href = $("#btn_denglu").attr("href");
        }
    });
    $(document).ready(function () {        
        var pwd1 = document.getElementById("pwd2");
        var pwd2 = document.getElementById("txt_pwd");
        pwd1.onfocus = function () {
            pwd1.style.display = "none";
            pwd2.style.display = "";
            pwd2.focus();
        };
        pwd2.onblur = function () {
            if (pwd2.value == "") {
                pwd1.style.display = "";
                pwd2.style.display = "none";
            }
        };
        if (pwd2.value == "") {
            pwd1.style.display = "";
            pwd2.style.display = "none";
        }
    });

</script>
</head>
<body>
<form id="from1" runat="server">
<div class="content_login">
<div class="login_logo"><img src="Images/login_logo.gif" /></div>
<div class="login_button">
    <asp:LinkButton ID="btn_denglu" runat="server" OnClick="btn_Submit_Click"></asp:LinkButton>
    <asp:TextBox ID="txt_pwd" runat="server"  TabIndex="11" TextMode="Password" CssClass="lg_input_bg" Text=""></asp:TextBox>
    <asp:TextBox ID="pwd2" runat="server"  TabIndex="11" CssClass="lg_input_bg" Text="密码" style="display:none;"></asp:TextBox>
    <asp:TextBox ID="txt_name" runat="server" TabIndex="10" CssClass="lg_input_bg" Text="" onfocus="javascript:if($(this).val()=='账号'){$(this).val('');}" onblur="javascript:if($(this).val()==''){$(this).val('账号');}"></asp:TextBox>
    <asp:CheckBox ID="CheckBox1" runat="server" CssClass="lg_check_bg" TabIndex="12" Text=" 记住此账号" /> 
</div>
<div class="login_Slogan">
<img src="Images/txet.gif"/>
</div>
</div>
</form>
</body>
</html>
